include ../config
INCLUDE := ../include
LIB := ../lib
obj := libhostcmd.a
dependence := sigbuftask.o cmdproc.o hostutil.o wkfutil.o iq_cmds.o ax_cmds.o aux_tbls.o pneu_tbls.o dt_cmds.o diag_tbls.o gc_cmds.o dx_cmds.o det_tbls.o
#sx_cmds.o cc_cmds.o ov_cmds.o ix_cmds.o dx_cmds.o cx_cmds.o ax_cmds.o vx_cmds.o as_cmds.o 0x_cmds.o zone_tbls.o aux_tbls.o cc_tbls.o gc_tbls.o det_tbls.o kbd_tbls.o pneu_tbls.o valve_tbls.o


$(obj): $(dependence)
	$(AR) rcs $(obj) $(dependence)
#cp $(obj) $(LIB)
$(dependence):%.o:%.c
	$(CC) -c $< -o $@ -I $(INCLUDE)
#“$<”表示所有的依赖目标集（也就是“config.c sampler.c”），“$@”表示目标集

.PHONY:clean
clean:
	-rm -f *.o *.a
